<template>
  <div class="progress">
    <div class="progressDesc">
      <img :src="getAssetsFile(`imgs/repairWorkflow/inspectionWork5.png`)" alt="" />
      <div class="txt">当前作业完成进度</div>
    </div>
    <div class="progressBar">
      <div class="progressBarLine">
        <div class="progressBox" style="--progress: 90%">
          <div class="divid" v-for="i in 19" :key="i"></div>
        </div>
      </div>
      <div class="percent">92%</div>
    </div>
  </div>
</template>

<script setup>
import { ref, onMounted, watch } from "vue";
import { getAssetsFile } from "@/utils";
</script>

<style lang="scss" scoped>
.progress {
  display: flex;
  flex-direction: column;
  .progressDesc {
    display: flex;
    align-items: center;
    height: 23px;
    margin-bottom: 8px;
    img {
      width: 7px;
      height: 14px;
      margin-right: 7px;
    }
    .txt {
      font-size: 21px;
      color: #fff;
    }
  }
  .progressBar {
    width: 100%;
    display: flex;
    .progressBarLine {
      flex: 1;
      background-color: #01162e;
      .progressBox {
        width: 100%;
        height: 16px;
        display: flex;
        justify-content: space-evenly;
        background: linear-gradient(
          to right,
          #3e5470,
          #03f3f1 var(--progress),
          #424f68 var(--progress)
        );
        .divid {
          background-color: #01162e;
          width: 4px;
          height: 100%;
        }
      }
    }
    .percent {
      line-height: 16px;
      margin-left: 13px;
      font-family: YouSheBiaoTiHei, YouSheBiaoTiHei;
      font-weight: 400;
      font-size: 27px;
      color: #ffffff;
    }
  }
}
</style>